package com.techgene.kanban.exception;


/**
 * This exception is the base class exception for all the exception classes used
 * 
 * @author 
 *
 */
public class KBException extends Exception {

	private String errorCode;

	public KBException(String errCode, String errMsg){
		super(errMsg);
		this.errorCode = errCode;
	}

	public KBException(String errCode, String errMsg, Throwable e){
		super(errMsg, e);
		this.errorCode = errCode;
	}

	public KBException(Throwable e){
		super(e);
	}

	public String getErrorCode() {
		return errorCode;
	}
}